#ifndef __AS_CONSTANT__H__
#define __AS_CONSTANT__H__

#include "..\base\ASDataType.h"
#include "..\base\ASStdLib.h"
#include "..\tool\ASLog.h"


/************************************************************************/
/* internal image resource information                                  */
/************************************************************************/
#define IMG_LOGO            "logo.bmp"
#define IMG_LOGO_W          142
#define IMG_LOGO_H          120

#define IMG_BOTTOM          "bottom.bmp"
#define IMG_BOTTOM_W        5
#define IMG_BOTTOM_H        40

#define IMG_TOP             "top.bmp"
#define IMG_TOP_W           5
#define IMG_TOP_H           40

/*custom bottom bar*/
#define IMG_BOTTOM_ICON_W   38
#define IMG_BOTTOM_ICON_H   38
#define IMG_DETAIL_D        "detail_d.bmp"
#define IMG_DETAIL_U        "detail_u.bmp"
#define IMG_STAT_D          "stat_d.bmp"
#define IMG_STAT_U          "stat_u.bmp"
#define IMG_DATA_D          "data_d.bmp"
#define IMG_DATA_U          "data_u.bmp"
#define IMG_SETTING_D       "setting_d.bmp"
#define IMG_SETTING_U       "setting_u.bmp"
#define IMG_ABOUT_D         "about_d.bmp"
#define IMG_ABOUT_U         "about_u.bmp"

#define IMG_CHARGE_D        "charge_d.bmp"
#define IMG_CHARGE_U        "charge_u.bmp"
#define IMG_CHARGE_W        80
#define IMG_CHARGE_H        33

#define IMG_NUMPAD        "number_pad.bmp"
#define IMG_NUMPAD_W      150
#define IMG_NUMPAD_H      158

/*date and time imgs*/
#define IMG_DATE_W        31
#define IMG_DATE_H        33
#define IMG_YEAR_D        "year_d.bmp"
#define IMG_YEAR_U        "year_u.bmp"
#define IMG_MONTH_D       "month_d.bmp"
#define IMG_MONTH_U       "month_u.bmp"
#define IMG_DAY_D         "day_d.bmp"
#define IMG_DAY_U         "day_u.bmp"
#define IMG_HOUR_D        "hour_d.bmp"
#define IMG_HOUR_U        "hour_u.bmp"
#define IMG_MINUTE_D      "minute_d.bmp"
#define IMG_MINUTE_U      "minute_u.bmp"

/*each sizes of list*/
#define IMG_NML_LIST_HL   "nml_list_h.bmp"
#define IMG_NML_LIST_HL_H 30
#define IMG_NML_LIST_HL_W 5
#define IMG_SML_LIST_HL   "sml_list_h.bmp"
#define IMG_SML_LIST_HL_H 20
#define IMG_SML_LIST_HL_W 5
#define IMG_LRG_LIST_HL   "lrg_list_h.bmp"
#define IMG_LRG_LIST_HL_H 40
#define IMG_LRG_LIST_HL_W 5

#define IMG_OP_TITLE_MEMBER  "title_member.bmp"
#define IMG_OP_TITLE_PAY  "title_pay.bmp"
#define IMG_OP_TITLE_INCOME  "title_income.bmp"
#define IMG_OP_TITLE_TYPE  "title_type.bmp"
#define IMG_OP_TITLE_SHOP  "title_shop.bmp"
#define IMG_OP_TITLE_OPTION  "title_option.bmp"
#define IMG_OP_TITLE_W 51
#define IMG_OP_TITLE_H 33

#define IMG_DETAIL_HEAD "detail_head.bmp"
#define IMG_DETAIL_HEAD_W 5
#define IMG_DETAIL_HEAD_H 30

/*bar below title*/
#define IMG_TITLE_BAR "title_bar.bmp"
#define IMG_TITLE_BAR_W 5
#define IMG_TITLE_BAR_H 30
#define IMG_TITLE_BAR_AR_L_U "title_bar_l_u.bmp"
#define IMG_TITLE_BAR_AR_L_D "title_bar_l_d.bmp"
#define IMG_TITLE_BAR_AR_R_U "title_bar_r_u.bmp"
#define IMG_TITLE_BAR_AR_R_D "title_bar_r_d.bmp"
#define IMG_TITLE_BAR_AR_W 23
#define IMG_TITLE_BAR_AR_H 30

/*small top titles*/
#define IMG_SMALL_TOP "small_top.bmp"
#define IMG_SMALL_TOP_W 5
#define IMG_SMALL_TOP_H 26

#define IMG_TITLE_STAT          "title_stat.bmp"
#define IMG_TITLE_DETAIL        "title_detail.bmp"
#define IMG_TITLE_NEW_REC       "title_new_rec.bmp"
#define IMG_TITLE_EDIT_REC       "title_edit_rec.bmp"
#define IMG_TITLE_PAY_STAT      "title_pay_stat.bmp"
#define IMG_TITLE_INCOME_STAT   "title_income_stat.bmp"
#define IMG_TITLE_MONTH_DIF     "title_month_dif.bmp"
#define IMG_TITLE_PAY_MONTHS    "title_pay_months.bmp"
#define IMG_TITLE_INCOME_MONTHS "title_income_months.bmp"
#define IMG_TITLE_SETTING       "title_setting.bmp"
#define IMG_TITLE_ABOUT         "title_about.bmp"
#define IMG_SMALL_TOP_TITLE_W 90
#define IMG_SMALL_TOP_TITLE_H IMG_SMALL_TOP_H

void as_sync_internal_img_info(void);
void as_get_internal_img_res_size(ASCHAR* name, ASINT* res_w, ASINT* res_h);


#endif//__AS_CONSTANT__H__